﻿using Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IBLL
{
    public interface IStudentsBll
    {
        public Task<int> AddStudentsAsync(string title);
        public Task<int> UpdateStudentsAsync(Guid id, string name,DateTime birthday
                                           ,string gender,string tel,string email
                                           ,string qqNumber,string address,Guid gradesId
                                           ,string pwd,string photo,DateTime updateTime);
        public Task<int> DeleteStudentsAsync(Guid id);
        Task<List<StudentsDto>> GetAll();
        public Task<StudentsDto> GetStudentsByIdAsync(Guid id);
        public Task<List<StudentsDto>> GetStudentsByNameAsync(string name);
        public Task<StudentsDto> SignlnAsyc(string ac,string pwd);

        public Task<int> UpdatePwdAsync(Guid id,string oldPwd,string newPwd);

        public Task<bool> IsExistAsync(Guid id,string tel);
    }
}
